package com.jk.smartelderlycare.controller;

import com.jk.smartelderlycare.dto.TbItem;
import com.jk.smartelderlycare.interfaces.TbItemServiceApi;
import com.jk.smartelderlycare.service.TbItemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author hhk
 * @version 1.0
 * @ClassName TbItemController
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/11/17 19:13
 */
@RestController
@Slf4j
public class TbItemController implements TbItemServiceApi {
    
    @Autowired
    private TbItemService tbItemService;
    /** 
     * @description: es查询所有商品信息
     * @param: [tbItem]
     * @return: java.util.List<com.jk.smartelderlycare.dto.TbItem>
     * @author hhk
     * @date: 2024/11/17 19:17
     */ 
    @Override
    public List<TbItem> findTbItemList(TbItem tbItem) {
        return tbItemService.findTbItemList(tbItem);
    }
}
